package com.xugou.service;

import com.xugou.pojo.Cost;
import org.apache.ibatis.annotations.Param;

/**
 * @author xugou
 * @date 2022/6/13  21:37
 */
public interface CostService {

    //通过订单号获取订单费用
    Cost getCostByOrderId(@Param("orderId") int id);

    //修该订单费用
    int updateOrderCost(Cost cost);

    //给订单增加相应的费用
    int bindCostOfOrder(Cost cost);

    //通过订单id删除订单费用
    int deleteCost(@Param("orderId") int id);
}
